﻿using System;
using FreeSql.DataAnnotations;

namespace Colorful.Furniture.ErpCustomerManagement;

/// <summary>
/// 每日零时客户账户余额
/// </summary>
[Table(Name = "erp_customer_price")]
public class CustomerPrice
{
    /// <summary>
    /// 编码
    /// </summary>
    [Column(Name = "id", IsPrimary = true)]
    public Guid Id { get; set; }

    /// <summary>
    /// 客户Id
    /// </summary>
    [Column(Name = "customer_id")]
    public Guid? CustomerId { get; set; }

    /// <summary>
    /// 客户编号
    /// </summary>
    [Column(Name = "customer_code")]
    public int? CustomerCode { get; set; }

    /// <summary>
    /// 客户名称
    /// </summary>
    [Column(Name = "customer_name", StringLength = 50)]
    public string CustomerName { get; set; }

    /// <summary>
    ///  每日时间
    /// </summary>
    [Column(Name = "day_time", CanUpdate = false, Position = -89)]
    public DateTime? DayTime { get; set; }

    /// <summary>
    /// 账户余额
    /// </summary>
    [Column(Name = "price", Scale = 4, Precision = 16)]
    public decimal? Price { get; set; }

    /// <summary>
    /// 初始授信额度
    /// </summary>
    [Column(Name = "credit_price_initial", Scale = 4, Precision = 16)]
    public decimal? CreditPriceInitial { get; set; }

    /// <summary>
    /// 冻结金额
    /// </summary>
    [Column(Name = "frozen_amount", Scale = 4, Precision = 16)]
    public decimal? FrozenAmount { get; set; }


}

